package MyFront;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import springfox.documentation.swagger2.annotations.EnableSwagger2;


@SpringBootApplication
@MapperScan("MyFramePro.Mapper")
@ComponentScan(basePackages = {"MyFront","MyFramePro"})     //需要扫描公共模块中的类,不然神仙来了也加载不进来
@EnableScheduling   //这里为开启定时任务功能的注解
@EnableSwagger2 //这里为 Swagger 开启的注解
public class FrontApplication {

    public static void main(String[] args) {

        SpringApplication.run(FrontApplication.class,args);
    }

}
